<?xml version="1.0" encoding="UTF-8"?>
<!--
    MusicPliz
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>MusicPliz</title>
</h:head>
<h:body>
	<h:outputStylesheet name="style.css" library="css" />
	<ui:include src="/WEB-INF/includes/header.xhtml" />
	<div id="container">
	<h:messages showDetail="false" showSummary="true" infoClass="info" errorClass="error"/>
	<h:form id="composeForm" class="classic">
	<h1>Composer un message</h1>
	<p>
		<h:outputLabel for="destinataire" value="destinataire" />
		<h:inputText id="destinatire" value="#{SearchCompteBean.destinataire.nom} #{SearchCompteBean.destinataire.prenom}"
			readonly="true"/>
	</p>
	<p>
		<h:outputLabel for="objet" value="objet" />
		<h:inputText id="objet" required="true" />
	</p>
	<p>
		<h:inputTextarea id="contenu" cols="30" rows="10"/>
	</p>
	<p>
		<h:inputHidden id="destinataire_id" value="#{SearchCompteBean.destinataire.id}" />
		<h:commandButton value="envoyer" action="#{MessagesBean.sendMessage}" />
	</p>
	</h:form>
	<div class="navigationLinks">
		<h:link outcome="#{NavigationBean.getSentSite()}" value="messages envoyés" />
		<h:link outcome="#{NavigationBean.getHomeSite()}" value="retour au Home" />
	</div>
	</div>
</h:body>
</html>
